#ifndef AVIUTILS_H
#define AVIUTILS_H
#include "avi_private.h"
#include "fileio.h"
#include <QByteArray>
class AviUtils
{
public:
    AviUtils();
    void write_avi_header(QByteArray *out, gwavi_header_t *avi_header);
    void write_stream_header(QByteArray *out, gwavi_stream_header_t *stream_header);
    void write_stream_format_v(QByteArray *out, gwavi_stream_format_v_t *stream_format_v);
    void write_stream_format_a(QByteArray *out, gwavi_stream_format_a_t *stream_format_a);
    int write_avi_header_chunk(gwavi_t *gwavi);
    int write_index(QByteArray *out, int count, uint *offsets);

private:
    FileIO *mFileIO;
};

#endif // AVIUTILS_H
